<?php
/**
 * Created by PhpStorm.
 * User: jurentech
 * Date: 2019-06-18
 * Time: 08:53
 */

namespace app\master\controller;





class Systems extends Base
{
    public function hot()
    {
        if(request()->isPost()){
            $content=input('post.content');
            db('system')->where(['system_id'=>2])->update(['content'=>$content]);
            $this->_ajax_return(200,'成功');
        }
        $data=db('system')->where(['system_id'=>2])->value('content');
        $this->assign('data',$data);
        return $this->fetch();
    }
}